package org.luxor.commons.redis.plugin.idempotent.exception;

import org.luxor.commons.core.exception.BaseException;
import org.luxor.commons.core.web.RestStatus;

/**
 * 幂等服务异常
 *
 * @author Mr.Yan  @date: 2020/9/18
 */
public class IdempotentException extends BaseException {

    public IdempotentException(String message) {
        super(RestStatus.IDEMPOTENT_ERROR, message);
    }

    public IdempotentException(String message, Throwable e) {
        super(RestStatus.IDEMPOTENT_ERROR.code(), message, e);
    }

}
